-- GENERATED SPELL FOR [Raging Agam'ar] --


function spell0_4514(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_4514', 617, 1)
end

function Sorts_4514(pUnit, Event)
local choix_sorts_4514 = math.random(0, 0)
if choix_sorts_4514 == 0 then
pUnit:RegisterEvent('spell0_4514', 1, 1)
end
end

function mob4514_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4514', math.random(1500, 3000), 1)
end

function mob4514_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4514_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4514_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4514, 1, 'mob4514_Action')
RegisterUnitEvent(4514, 2, 'mob4514_Leave')
RegisterUnitEvent(4514, 3, 'mob4514_Kill')
RegisterUnitEvent(4514, 4, 'mob4514_Die')
